package com.example.music.utils;

import cn.hutool.crypto.SecureUtil;
import cn.hutool.crypto.digest.MD5;
import com.example.music.service.SongService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.multipart.MultipartFile;

import java.io.File;

public class FileMd5 {

    public static String getFileMd5(File file){
        return SecureUtil.md5(file);
    }

}
